#include<bits/stdc++.h>
using namespace std;
signed main() {
    int n;
    cin >> n;
    getchar();

    string s;
    while(n--) {
        getline(cin, s);

        int idx_douhao = s.find(',');
        int idx_juhao = s.find('.');

        int flag = 0;

        if(idx_douhao > 2 && s.substr(idx_douhao - 3, 3) == "ong")
            flag++;

        if(s.substr(idx_juhao - 3, 3) == "ong")
            flag++;

        if(flag == 2) {
            int cnt_space = 0;
            int idx_alt = idx_juhao - 1;
            for(; cnt_space < 3; idx_alt--) {
                if(s[idx_alt] == ' ') {
                    cnt_space++;
                }
            }

            s.replace(idx_alt + 2, idx_juhao - idx_alt - 2, "qiao ben zhong");
            cout << s << "\n";

        } else {
            cout << "Skipped\n";
        }
    }

    return 0;
}

